package tds.model24.version2;

import java.util.Date;
import java.util.List;

/**
 * @Company 杭州先锋电子技术股份有限公司
 * @ClassName BakeMutton
 * @Description 烤羊肉
 * @author tds
 * @Date 2020/2/6 21:38
 * @version 1.0.0
 */
public class BakeMutton implements Order {

    private Chef chef;

    public BakeMutton(Chef chef) {
        this.chef = chef;
    }

    @Override
    public void execute() {
        System.out.println("记录日志：烤羊肉" + new Date());
        chef.cook("烤羊肉");
    }
}
